using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._NetworkDiagramTools
{
    /// <summary>
    /// <para>Overwrite Diagram</para>
    /// <para>Overwrites the contents of a network diagram with the network elements currently selected in the specified map. These network elements become the new initial content of the diagram.</para>
    /// <para>使用指定地图中当前选择的网络元素覆盖网络逻辑示意图的内容。这些网络元素成为逻辑示意图的新初始内容。</para>
    /// </summary>    
    [DisplayName("Overwrite Diagram")]
    public class OverwriteDiagram : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public OverwriteDiagram()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_network_diagram_layer">
        /// <para>Input Network Diagram Layer</para>
        /// <para>The network diagram to overwrite.</para>
        /// <para>要覆盖的网络逻辑示意图。</para>
        /// </param>
        /// <param name="_map">
        /// <para>Input Map</para>
        /// <para>The map referencing the set of selected network elements to use to overwrite the input network diagram.</para>
        /// <para>引用用于覆盖输入网络逻辑示意图的选定网络元素集的地图。</para>
        /// </param>
        public OverwriteDiagram(object _in_network_diagram_layer, object _map)
        {
            this._in_network_diagram_layer = _in_network_diagram_layer;
            this._map = _map;
        }
        public override string ToolboxName => "Network Diagram Tools";

        public override string ToolName => "Overwrite Diagram";

        public override string CallName => "nd.OverwriteDiagram";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_network_diagram_layer, _map, _out_network_diagram_layer];

        /// <summary>
        /// <para>Input Network Diagram Layer</para>
        /// <para>The network diagram to overwrite.</para>
        /// <para>要覆盖的网络逻辑示意图。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network Diagram Layer")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_network_diagram_layer { get; set; }


        /// <summary>
        /// <para>Input Map</para>
        /// <para>The map referencing the set of selected network elements to use to overwrite the input network diagram.</para>
        /// <para>引用用于覆盖输入网络逻辑示意图的选定网络元素集的地图。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Map")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _map { get; set; }


        /// <summary>
        /// <para>Output Network Diagram</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network Diagram")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_network_diagram_layer { get; set; }


        public OverwriteDiagram SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}